package com.example.shixun.service.impl;

import com.example.shixun.dao.QuestionDao;
import com.example.shixun.pojo.Question;
import com.example.shixun.service.QuestionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/24 17:17
 */
@Service
public class QuestionServiceImpl implements QuestionService {
    @Resource
    private QuestionDao questionDao;
    @Override
    public int saveQuestion(Question question) {
        return questionDao.saveQuestion(question);
    }

    @Override
    public int deleteQuestionById(int id) {
        return questionDao.deleteQuestionById(id);
    }

    @Override
    public Question selectQuestionById(int id) {
        return questionDao.selectQuestionById(id);
    }

    @Override
    public int updateQuestion(Question question) {
        return questionDao.updateQuestion(question);
    }
}
